<template>
  <div>
    <div class="headertop">
      <div class="header">
        <slot name="left"></slot>
        <span class="tltle">{{ title }}</span>
        <slot name="right"></slot>
      </div>
    </div>
    <div class="box"></div>
  </div>
</template>

<script>
export default {
  props: ["title"],
};
</script>

<style lang="less" scoped>
.toback {
  position: relative;
}
.iconnew {
  margin-left: 20px;
  font-size: 50px;
  position: absolute;
  top: -2px;
  left: 15px;
}
.headertop {
  width: 100%;
  position: fixed;
}
.header {
  height: 45px;
  padding: 0 15px;
  border-bottom: 2px solid rgba(153, 153, 153, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: red;
  background: #fff;
  .tltle {
    color: #000;
    font-size: 16px;
  }
  slot {
    color: red;
  }
}
.box {
  height: 45px;
}
.van-icon {
  color: red;
  font-size: 25px;
}
</style>